<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>3</title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
	</head>
	<body>
		<div id="app">
			<p v-for="item in items1">{{item}}</p>
			<div v-for="(item,i) in items1">我是第{{i}}div:{{item}}</div>
			<p v-for="ite in items2">{{ite.name}}---{{ite.age}}</p>
			<template v-for="ite in items2">
				<span>{{ite.name}}</span>
				<p>{{ite.age}}</p>
			</template>
		</div>
		<script>
			var exam = new Vue({
				el: "#app",
				data: {
					items1: ["ZHANGSAN", "LISI", "WANGWU", "zhaoliu"],
					items2: [{
							name: "张三",
							age: 24
						},
						{
							name: "张三aa",
							age: 23
						},
						{
							name: "张三bb",
							age: 25
						},
					]
				}
			})
		</script>
	</body>
</html>
